#ifndef MYREPLY_H
#define MYREPLY_H

#include <QNetworkReply>
#include <QFile>
#include <QTimer>
#include "mynetwork_global.h"

class myNetwork_EXPORT myReply : public QNetworkReply
{
    Q_OBJECT
public:
    myReply(const QUrl &);
    void abort();
    qint64 bytesAvailable() const;
    bool isSequential() const;

protected:
    qint64 readData(char *data, qint64 maxSize);

private:
    static QByteArray mainPage(QByteArray);
    static QByteArray settingsPage(QByteArray);
    static QByteArray noTranslate(QByteArray);
    QByteArray content;
    qint64 offset;
};

#endif // MYREPLY_H
